<div class="loader"></div>
<h3>{{ $text_edit }} {{ $title }} with ID# {{ $result->id }}</h3>
{{ Form::model($result, array('route' => array($base . '.update', $result->id), 'method' => 'PUT', 'id' => 'form')) }}
	<div class="form-group">
		{{ Form::label('description', $form_description) }}
		{{ Form::text('description', $result->description, array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_description"></span>
	</div>	
	<div class="form-group">
		{{ Form::label('date', $form_date) }}
		{{ Form::text('date', date('Y-m-d', strtotime($result->date)), array('class' => 'form-control')) }}
		<span class="error text-danger" id="error_date"></span>
	</div>	
	{{ Form::submit($text_submit, array('class' => 'btn btn-primary', 'id'=> 'submit', 'data-loading-text' => $text_loading)) }}
	{{ HTML::link( URL::previous(), $text_cancel, array('class' => 'btn btn-default', 'id'=> 'cancel')) }}
{{ Form::close() }}

<script  type="text/javascript">
	$(function(){
		$('#date').datetimepicker({format: 'YYYY-MM-DD'});
	});
</script>